/*
 * @Author: 高瑞寒 15932717091@163.com
 * @Date: 2022-04-30 15:47:15
 * @LastEditTime: 2022-04-30 15:51:16
 * @LastEditors: 高瑞寒 15932717091@163.com
 * @Description: 
 */
import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'
class Header extends Component {
  render() {
    return (
      <div className="row">
        <div className="col-xs-offset-2 col-xs-8">
          <div className="page-header"><h2>React Router Demo</h2></div>

          <button onClick={() => this.props.history.goBack()}>后退</button>
          <button onClick={() => this.props.history.goForward()}>前进</button>
          <button onClick={() => this.props.history.go(0)}>GO</button>
        </div>
   
      </div>
    )
  }
}
export default withRouter(Header)
